package com.hmall.mapper;

import com.hmall.model.ContClause;
import com.hmall.util.MyMapper;
import com.hmall.vo.ContractVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContClauseMapper extends MyMapper<ContClause> {
    Integer disableContract(@Param("id") Integer id);
    Integer enableContract(@Param("id") Integer id);
    List<ContractVo> selectAllContract();
    ContractVo selectContract(Integer id);
    List<ContClause> selectClauseById(@Param("id") Integer id);

    List<ContractVo> selectMyContract(@Param("shop_id") Integer shop_id);
    List<ContClause> selectListByTitle(@Param("query") String query);

    List<ContractVo> selectDealerContract(@Param("dealer_id") Integer dealer_id);

    List<ContClause> selectDealerListByTitle(@Param("query") String query,@Param("dealer_id") Integer dealer_id);
}